/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/photoItemList',controller.photo.getPhotoList);
  router.post('/uploadPhoto',controller.photo.uploadPhoto);
  router.post('/removePhoto',controller.photo.removePhoto);
  router.get('/fetchBranchesOfRepo',controller.deploy.fetchBranchesOfRepo);
  router.post('/deployBranch',controller.deploy.deployBranchOfRepo);
};
